<?php

namespace app\activity\model;

use app\BaseModel;
use app\shop\model\IndexUser;
use think\facade\Db;

/**
 * @mixin think\Model
 */
class ActivityItemRecord extends BaseModel
{
    protected $name = 'lb_activity_item_record';
    protected $pk = 'id';


    public function getListByUserIdsAndActivityId($user_ids, $activity_id)
    {
        return  $this->where([
                ['activity_id', '=',  $activity_id],
                ['status', '=',  1],
                ['user_id', 'in', $user_ids]
            ])->select()->toArray();
    }



}
